package com.gmu.mapper;

import com.gmu.pojo.TblVolunteer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 志愿者申请 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
public interface TblVolunteerMapper extends BaseMapper<TblVolunteer> {

    Integer volunteerSignIn(Integer userId,Integer activitiesId, String address, Date date);

    Integer volunteerSignOut(Integer userId,Integer activitiesId, Date date);

    List<TblVolunteer> getAllUserSignInfo(Integer userId);

    Integer agreeVolunteerOrder(Integer[] volunteerIds);

    Integer selectCountVolunteer(Integer userId,Integer activitiesAddressId);

    Integer selectOrderRecord(Integer userId,Integer activitiesId);
}
